<?php /* Smarty version Smarty-3.0.8, created on 2012-04-04 02:23:45
         compiled from "D:\zend\Apache2\htdocs\sp/tpl\xiao/file_index.html" */ ?>
<?php /*%%SmartyHeaderCode:68784f7bb0b17097b1-38537764%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'cda3266396b4a89669982d8168820ae385a34050' => 
    array (
      0 => 'D:\\zend\\Apache2\\htdocs\\sp/tpl\\xiao/file_index.html',
      1 => 1333506223,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '68784f7bb0b17097b1-38537764',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>无标题文档</title>
<link rel="stylesheet" type="text/css" href="./tpl/xiao/css/style.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script type="text/javascript" src="./tpl/xiao/js/jquery.min.js"></script>
<script language="javascript" src="./tpl/xiao/js/css.js"></script>
<script language="javascript">
$(function(){
	$("#creat_folder").click(function(){
				alert("folder");
									 });	   
		   });
</script>
</head>

<body>
<div id="wrap">
  <div class="main">
	<div class="tab"><span class="aspan">&nbsp;&nbsp;&nbsp;目录<?php echo $_smarty_tpl->getVariable('folder')->value;?>
下文件列表</span></div>
	  <table cellspacing="0" class="datalist" id="list" width="98%">
		<tr>
			<th class="firstcol">编号</th>
			<th>文件名称</th>
			<th>文件路径</th>
            <th>文件属性</th>
            <th>文件大小</th>
			<th>文件操作</th>
		</tr>
        <?php if ($_smarty_tpl->getVariable('files')->value){?>
		<form action="" method="post" name="myform">
		<input type="hidden" name="do_submit" value="1" />
		<?php  $_smarty_tpl->tpl_vars['file'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('files')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['file']->key => $_smarty_tpl->tpl_vars['file']->value){
?>
		<tr>
			<td  width="6%" align="center"><input type="checkbox" name="id[]" value="1" class="checkbox" /><?php echo $_smarty_tpl->tpl_vars['file']->value['fid'];?>
</td>
			<td  width="20%" align="center"><?php echo $_smarty_tpl->tpl_vars['file']->value['fname'];?>
</td>
			<td  width="20%"><?php echo $_smarty_tpl->tpl_vars['file']->value['fpath'];?>
</td>
            <td width="10%"><?php echo $_smarty_tpl->tpl_vars['file']->value['profile'];?>
</td>
            <td width="20%"><?php echo $_smarty_tpl->tpl_vars['file']->value['fsize'];?>
KB</td>
		  <td  width="24%"><a href="?c=sfile&a=edit&f=<?php echo $_smarty_tpl->tpl_vars['file']->value['fname'];?>
&fp=<?php echo $_smarty_tpl->getVariable('fp')->value;?>
">编辑文件</a>&nbsp;&nbsp;&nbsp;
          <a href="?c=sfile&a=del&f=<?php echo $_smarty_tpl->tpl_vars['file']->value['fname'];?>
&fp=<?php echo $_smarty_tpl->getVariable('fp')->value;?>
">删除文件</a></td>
		</tr>
		 <?php }} ?>
		<tr>
			<td colspan="6" align="left">
            	<span class="aspan">当前文件路径:</span><input type="text"  name="newpath"/>
                <input type="button" class="submit" value="更改文件路径" />
                <input type="button" class="submit" value="创建文件夹"  id="creat_folder"/>
                <input type="button" class="submit" value="创建文件" />
            </td>
		</tr>
		</form>
       
        <?php }else{ ?>
		<tr><td colspan="6">目前没有可监视的文件或文件夹...<a href="?c=file&a=addfile"><font color="red">添加新文件</font></a>&nbsp;&nbsp;<a href="?c=file&a=addfloder"><font color="red">添加新文件夹</font></a></td></tr>	
		<?php }?>
		<tr>
			<td colspan="6" class="errmsg"><?php echo $_smarty_tpl->getVariable('msg')->value;?>
</td>
		</tr>
		</table>
	</div>
</div>
</body>
</html>